package com.xnyzc.lhy.common.penum.auth;

import com.xnyzc.lhy.common.entity.PEnum;

/**
 * 登录认证相关
 * @author lhy@xnyzc.com
 * @since 2019-07-22
 */
public enum OaAuthEnum implements PEnum<Integer> {
    smsType(0,"验证码登录"),
    passwordType(1,"密码登录");



    int value;
    String desc;

    OaAuthEnum(int value, String desc) {
        this.value = value;
        this.desc=desc;

    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return desc;
    }

    public String toMessage() {
        String errorMessage = this.value + "," + this.desc;
        return errorMessage;
    }
}
